<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="UTF-8"/>

<xsl:template match="/">
		<div class='exception'>
			<h1 style='color:red;'>Exception!</h1>
			<i style='display: block; width: 100%'> </i>
			Core
			<xsl:for-each select='//trace'>
				<xsl:sort select='position()' order='descending' />
				=&gt;
				<xsl:value-of select='./@class' />
				::
				<xsl:value-of select='./@function' />
				(
				<xsl:value-of select='./@line' />
				)
			</xsl:for-each>
			=>
			<font style='color:red; font-size: 150%;'>
				Exception!
			</font>
			<i style='display: block; width: 100%'> </i>
			<i style='display: block; width: 100%'> </i>
			<i>Code:</i>
			<xsl:value-of select='/exception/code' />
			<i>Message:</i>
			<xsl:value-of select='/exception/message' />
			<i style='display: block; width: 100%'> </i>
			<i style='display: block; width: 100%'> </i>
			<u>Logs:</u>
			<i style='display: block; width: 100%'> </i>
			<table>
				<xsl:for-each select='//logs/log'>
					<tr>
						<td>
							<xsl:value-of select='./@logfile' />
						</td>
						<td width='100px'>
							<xsl:value-of select='./@level' />
						</td>
						<td>
							<xsl:value-of select='.' />
						</td>
					</tr>
				</xsl:for-each>
			</table>
		</div>
</xsl:template>
</xsl:stylesheet>